package com.gopay.common.domain.dps;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 天溢盈分享返润明细表
 * 
 * @author ZHOUPENG
 * @date 2017年4月14日 下午1:31:38
 */
@Entity
@Table(name = "WA_TYY_REBATE_DTL")
public class WaTyyRebateDtl extends BaseEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	 */
	private String rebateId;

	/**
	 * 购买订单的国付宝订单号
	 */
	private String purchaseGopayOrderId;

	/**
	 * 受邀人cust_id
	 */
	private String receiveCustId;
	
	/**
	 * 邀请人cust_id
	 */
	private String inviteCustId;

	/**
	 * 购买金额
	 */
	private BigDecimal purchaseAmt;
	/**
	 * 返利金额
	 */
	private BigDecimal rebateAmt;
	/**
	 * 购买时间
	 */
	private Date purchaseTs;
	/**
	 * 更新时间
	 */
	private Date lastUpdTs;
	@Id
	@Column(name="REBATE_ID")
	public String getRebateId() {
		return rebateId;
	}

	public void setRebateId(String rebateId) {
		this.rebateId = rebateId;
	}
	@Column(name="PURCHASE_GOPAY_ORDER_ID")
	public String getPurchaseGopayOrderId() {
		return purchaseGopayOrderId;
	}

	public void setPurchaseGopayOrderId(String purchaseGopayOrderId) {
		this.purchaseGopayOrderId = purchaseGopayOrderId;
	}
	@Column(name="RECEIVE_CUST_ID")
	public String getReceiveCustId() {
		return receiveCustId;
	}

	public void setReceiveCustId(String receiveCustId) {
		this.receiveCustId = receiveCustId;
	}
	@Column(name="INVITE_CUST_ID")
	public String getInviteCustId() {
        return inviteCustId;
    }

    public void setInviteCustId(String inviteCustId) {
        this.inviteCustId = inviteCustId;
    }

    @Column(name="PURCHASE_AMT")
	public BigDecimal getPurchaseAmt() {
		return purchaseAmt;
	}

	public void setPurchaseAmt(BigDecimal purchaseAmt) {
		this.purchaseAmt = purchaseAmt;
	}
	@Column(name="REBATE_AMT")
	public BigDecimal getRebateAmt() {
		return rebateAmt;
	}

	public void setRebateAmt(BigDecimal rebateAmt) {
		this.rebateAmt = rebateAmt;
	}
	@Column(name="PURCHASE_TS")
	public Date getPurchaseTs() {
		return purchaseTs;
	}

	public void setPurchaseTs(Date purchaseTs) {
		this.purchaseTs = purchaseTs;
	}
	@Column(name="LAST_UPD_TS")
	public Date getLastUpdTs() {
		return lastUpdTs;
	}

	public void setLastUpdTs(Date lastUpdTs) {
		this.lastUpdTs = lastUpdTs;
	}

    @Override
    public String toString() {
        return "WaTyyRebateDtl [rebateId=" + rebateId + ", purchaseGopayOrderId=" + purchaseGopayOrderId
                + ", receiveCustId=" + receiveCustId + ", inviteCustId=" + inviteCustId + ", purchaseAmt=" + purchaseAmt
                + ", rebateAmt=" + rebateAmt + ", purchaseTs=" + purchaseTs + ", lastUpdTs=" + lastUpdTs + "]";
    }

}
